<%--
 *  File:    PharmacyInfo.jsp
 *  @Author: Jamesli 
 *  Date:    2010/06/30
 *
 *  Copyright (C) 2000 - 2010 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.PharmacyInfo");
  String strModuleName = "ERM";
  String privilegeCode = "10903";
  String contextPath = request.getContextPath();
%>
<% //--------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>
<title>PharmacyInfo</title>
<PageFlow:CheckPageFlow pageName="p_pharmacydetail"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
<script language="JavaScript">
function page_back()
{
	this.location.href = "PharmacySummary.jsp?<%= OvalTools.randomURL() %>&summaryidentify=pharmacy";
}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" >
  <tr> 
    <td valign="top"> 
        <table border="1" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%" cellpadding="1">
          <tr> 
            <td colspan="4" class="deepblue-left"><img src="<%=contextPath %>/images/<%= strLanguageCode %>/quote.gif"> 
              	<%= label.getLabelName("L_Pharmacy") + label.getLabelName("L_Information") + label.getLabelName("L_Colon") %></td>
          </tr>
          <tr> 
            <td class="td-text" width="20%"><%= label.getLabelName("L_PharmacyCode") + label.getLabelName("L_Colon") %></td>
            <td width="30%"><custom:write property="referenceorgcode" name="pharmacydetail" nbsp="true"/></td>
            <td class="td-text" width="20%"><%= label.getLabelName("L_InfoDeptReferenceNo") + label.getLabelName("L_Colon") %></td>
            <td width="30%"><custom:write property="pharmacycode" name="pharmacydetail" nbsp="true"/></td>
          </tr>
          <tr>
            <td class="td-text" ><%= label.getLabelName("L_Pharmacy") + label.getLabelName("L_Name") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="pharmacyname" name="pharmacydetail" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_Shortname") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="shortname" name="pharmacydetail" nbsp="true"/></td>
          </tr>
          <tr>
          	<td class="td-text" ><%= label.getLabelName("L_ChainHeadquarter") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="parentorgcode" name="pharmacydetail" nbsp="true"/>
            	<custom:write property="parentorgname" name="pharmacydetail" nbsp="true"/>
            </td>
             <td class="td-text"><%= label.getLabelName("L_PCCodeName") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="globalpccode" name="pharmacydetail" nbsp="true" dictType="GlobalPCCode"/></td>
          </tr>
         
          <tr>
          	<td class="td-text"><%= label.getLabelName("L_Province") + label.getLabelName("L_Colon") %></td>
            <td>
            <%--
            	<custom:write property="regioncode" name="pharmacydetail"/>
             --%>
            	<custom:write property="regionname" name="pharmacydetail"/>
            </td>
          	<td class="td-text"><%= label.getLabelName("L_City") + label.getLabelName("L_Colon") %></td>
          	<td>
          	<%--
          		<custom:write property="citycode" name="pharmacydetail" nbsp="true"/>
          	 --%>
          	
            	<custom:write property="cityname" name="pharmacydetail"/>
            </td>
          </tr>
          <tr>
          	<td class="td-text"><%= label.getLabelName("L_County") + label.getLabelName("L_Colon") %></td>
            <td>
            	<%--
            	<custom:write property="countycode" name="pharmacydetail" nbsp="true"/>
            	 --%>
              	<custom:write property="countyname" name="pharmacydetail"/>
            </td>
             <td class="td-text"><%= label.getLabelName("L_Status") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="status" name="pharmacydetail" dictType="Status"/>
            </td>
        </tr>
        <tr>
         <td class="td-text"><%= label.getLabelName("L_TerminalType") + label.getLabelName("L_Colon") %></td>
            <td><custom:write dictType="PharmacyType"  property="pharmacytype" name="pharmacydetail"  nbsp="true"/></td>
         
         <td class="td-text"><%= label.getLabelName("L_PharmacyLevel") + label.getLabelName("L_Colon") %></td>
            <td><custom:write dictType="PharmacyLevel"  name="pharmacydetail" property="pharmacylevel" nbsp="true"/></td>
         	
          </tr>
          <tr>
          <td class="td-text"><%= label.getLabelName("L_Manager1") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="manager" name="pharmacydetail" nbsp="true" />
            </td>

          	<td class="td-text" id="show"><%= label.getLabelName("L_PharmacyType") + label.getLabelName("L_Colon") %></td>
          	<td>
          	<custom:write property="chaintype" name="pharmacydetail" dictType="ChainType"  nbsp="true" />
            </td>
          </tr>
          
          <tr>
              <td class="td-text"><%= label.getLabelName("L_TurnOver") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="turnover" name="pharmacydetail" nbsp="true" /><%=label.getLabelName("L_Megabucks") %>
            </td>
             
          	<td class="td-text"><%= label.getLabelName("L_YLsaleroom") + label.getLabelName("L_Colon") %></td>
          	<td>
          		<custom:write property="ylsaleroom" name="pharmacydetail" nbsp="true"/><%=label.getLabelName("L_Megabucks") %>
            </td>
            	
          </tr>
            <tr>
            <td class="td-text"><%= label.getLabelName("L_Bizarea") + label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:write property="bizarea" name="pharmacydetail" nbsp="true"/><%=label.getLabelName("L_SquareMeter") %>
            </td>
            
           <td class="td-text"><%= label.getLabelName("L_URL") + label.getLabelName("L_Colon") %></td>
          	<td>
          		<custom:write property="url" name="pharmacydetail" nbsp="true"/>
            </td>
          </tr>
          
          <tr> 
            <td class="td-text"><%= label.getLabelName("L_Telephone") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="telephone" name="pharmacydetail" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_Fax") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="fax" name="pharmacydetail" nbsp="true"/></td>
          </tr>
          <tr>
          	<td class="td-text"><%= label.getLabelName("L_Email") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="email" name="pharmacydetail" nbsp="true"/></td>
            <td class="td-text"><%= label.getLabelName("L_ZipCode") + label.getLabelName("L_Colon") %></td>
            <td><custom:write property="zipcode" name="pharmacydetail" nbsp="true"/></td>
          </tr>
          <tr> 
            <td class="td-text"><%= label.getLabelName("L_Address") + label.getLabelName("L_Colon") %></td>
            <td>
               <custom:write name="pharmacydetail" property="address" nbsp="true"/>
            </td>
            	<td class="td-text"><%= label.getLabelName("L_YesOrNoTarget") + label.getLabelName("L_Colon") %></td>
          	<td>
          	<custom:write dictType="YesOrNo"  property="istarget" nbsp="true"/>
            </td>
          </tr>
          <tr> 
            <td class="td-text"><%= label.getLabelName("L_Comments") + label.getLabelName("L_Colon") %></td>
            <td> 
               <custom:write name="pharmacydetail" property="comments" nbsp="true"/>
            </td>
            	<td class="td-text"><%= label.getLabelName("L_Newrecordname") + label.getLabelName("L_Colon") %></td>
          	<td><custom:write property="newrecordname" name="pharmacydetail" nbsp="true"/>
          </tr>
          <tr>
          	<td class="td-text">
          		<%= label.getLabelName("L_IsMedicalInsurance") + label.getLabelName("L_Colon") %>
          	</td>
          	<td>
          		<custom:write property="ismedicalinsurance" dictType="YesOrNo" name="pharmacydetail" nbsp="true"/>
          	</td>
          	<td class="td-text">
          		<%= label.getLabelName("L_IsParity") + label.getLabelName("L_Colon") %>
          	</td>
          	<td>
          		<custom:write property="isparity" dictType="YesOrNo" name="pharmacydetail" nbsp="true"/>
          	</td>
          </tr>
        </table>
      </td>
  </tr>
  <tr>
    <td class="summary_top"></td>
  </tr>
  <tr> 
      <td height="49" class="td_center">
      	<a onclick="page_back()"><custom:button type="1" label="L_Back" imgsrc="finish.gif" border="0" style="width:60"/></a>
      </td>
  </tr>
</table>
</body>
</html>